/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package main;

/**
 *
 * @author dalexandre
 */
public class Velocity {

    private double [] velocities;

    public Velocity (int dimension) {
        this.velocities = new double[dimension];
    }

    public double[] getVelocities() {
        return velocities;
    }

    public void setVelocities(double[] velocities) {
        this.velocities = velocities;
    }

     @Override
    public Velocity clone() {

        Velocity clone = new Velocity(this.velocities.length);

        for (int i = 0; i < this.velocities.length; i++) {
            clone.getVelocities()[i] = this.velocities[i];
        }

        return clone;

    }

}
